home *** CD-ROM | disk | FTP | other *** search
/ FM Towns: Free Software Collection 6 / FM Towns Free Software Collection 6.iso / ms_dos / gds / source / gds110.c < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-08  |  415 b   |  23 lines

  1.  
  2. /*
  3.  *
  4.  *    GDS110 : 図形デ-タの出力
  5.  *
  6.  */
  7.  
  8. #include <stdio.h>
  9. #include <dos.h>
  10.  
  11. unsigned int GDS_display(unsigned char *wp) {
  12.    union  REGS  inregs, outregs;
  13.    struct SREGS segregs;
  14.  
  15.    segread(&segregs);
  16.    segregs.ds=_DS;
  17.    inregs.x.di=(unsigned int)wp;
  18.    inregs.x.ax=0x8F00;
  19.    int86x(0x92,&inregs,&outregs,&segregs);
  20.    *(unsigned int *)wp=0;
  21.    return (unsigned int)outregs.h.ah;
  22. }
  23.